package sample.utils;

import javafx.scene.control.Alert;
import javafx.stage.Stage;


public class AlertUtils {
    public static void alert(String header, String content, Stage stage)
    {
        Alert alert = new Alert(Alert.AlertType.INFORMATION);
        alert.setTitle("提示");
        alert.setHeaderText(header);
        alert.setContentText(content);

        alert.initOwner(stage);
        alert.showAndWait();
    }
}
